package com.leinao;

import com.leinao.core.FailDeviceIdPool;
import com.leinao.utils.banner.SuccessBannerUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.mybatis.spring.annotation.MapperScan;

/**
 * description
 *
 * @author zhong.wang
 * @date 2025/1/13
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
// 表示通过aop框架暴露该代理对象,AopContext能够访问
@EnableAspectJAutoProxy(exposeProxy = true)
// 指定要扫描的Mapper类的包的路径
@MapperScan("com.leinao.**.mapper")
public class DataSimulatorApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(DataSimulatorApplication.class, args);
        SuccessBannerUtils.banner();
        FailDeviceIdPool instance = FailDeviceIdPool.getInstance();
        System.out.println("===============");
        instance.print();
        System.out.println("===============");
    }
}
